<template>
    <div class="wrap">
        <!-- 标题栏 -->
        <title-header>
            <div slot="left" class="title-left">
                <img src="@/assets/img/good-title-icon.png" alt="">
                <span>精品推荐</span>
            </div>
            <div slot="right" class="title-right">
                <span>更多</span>
                <img src="@/assets/img/left-more.png" alt="">
            </div>
        </title-header>

        <!-- 商品列表  -->
        <goods-list />

    </div>
</template>

<script>
    import titleHeader from '@/components/common/title-header'
    import goodsList from '@/components/common/goods-list'

    import {
        getRecommend
    } from '@/request/appApi.js'
    export default {
        name: '',
        components: {
            titleHeader,
            goodsList
        },
        props: {

        },
        data() {
            return {
                recommendList:[]
            };
        },
        methods: {
            
        },
        watch: {

        },
        created() {
            getRecommend().then(res=>{
                this.recommendList = res.data.data.records
            })
        },
        mounted() {

        },
        computed: {

        },
    };
</script>

<style scoped lang="less">
    .wrap {
        .title-left {
            height: 40px;
            display: flex;
            align-items: center;
            cursor: pointer;

            img {
                width: 40px;
            }

            span {
                margin-left: 10px;
                font-size: 30px;
                font-family: SourceHanSansSC;
                font-weight: bold;
                color: #242B39;
                cursor: pointer;
            }
        }

        .title-right {
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;

            span {
                margin-right: 6px;
                font-size: 16px;
                font-family: SourceHanSansSC;
                font-weight: 300;
                color: #666666;

            }

            img {
                width: 14px;
            }


        }
    }
</style>